package com.zzj.service;

import com.zzj.entity.Like;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zzj
 * @since 2023-05-13
 */
public interface ILikeService extends IService<Like> {
    Like save(int targetId,int targetType,String fromUsername, String toUsername);

    /**
     * 通过targetId和fromUsername可以确定like
     * @param targetId
     * @param fromUsername
     * @return
     */
    boolean remove(int targetId,String fromUsername);

    Like findLike(int targetId,String fromUsername);
}
